/*    */ package com.qmsk.business.store.goodsStock.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class GoodsStockDao extends SupportDAO
/*    */ {
/*    */   public GsonEbRst getGsonOfAll(Map<String, Object> params, Integer nPageIdx, Short nPageSize)
/*    */     throws SQLException
/*    */   {
/* 17 */     return getGsonOfParams("selectSqlOfParam", params, nPageIdx, nPageSize, 
/* 18 */       true);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfId(Map<String, Object> params) throws SQLException
/*    */   {
/* 23 */     return getGsonOfParams("selectSqlOfParam", params, false);
/*    */   }
/*    */ 
/*    */   public int updateCountOfGoodsIdAndShopId(Double count, Long shopId, Long goodsId) throws SQLException
/*    */   {
/* 28 */     Object[] params = { count, goodsId, shopId };
/* 29 */     return update("updateCountOfGoodsIdAndShopId", params);
/*    */   }
/*    */ 
/*    */   public int updateCountOfGoodsIdAndHouseId(Double count, Long houseId, Long goodsId) throws SQLException
/*    */   {
/* 34 */     Object[] params = { count, goodsId, houseId };
/* 35 */     return update("updateCountOfGoodsIdAndHouseId", params);
/*    */   }
/*    */ 
/*    */   public Double getNumOfGoodsIdAndShopId(Long shopId, Long goodsId) throws SQLException
/*    */   {
/* 40 */     Object[] params = { goodsId, shopId };
/* 41 */     return queryForDouble("getNumofGoodsIdAndShopId", params, Double.valueOf(0.0D));
/*    */   }
/*    */ 
/*    */   public Double getNumOfGoodsIdAndHouseId(Long shopId, Long houseId) throws SQLException
/*    */   {
/* 46 */     Object[] params = { houseId, shopId };
/* 47 */     return queryForDouble("getNumofGoodsIdAndHouseId", params, Double.valueOf(0.0D));
/*    */   }
/*    */ 
/*    */   public Integer getCountOfGoodsInStock(Long shopId, Long houseId) throws SQLException
/*    */   {
/* 52 */     Object[] params = { houseId, shopId };
/* 53 */     return queryForInt("getCountOfGoodsInStock", params, Integer.valueOf(0));
/*    */   }
/*    */ 
/*    */   public GsonEbRst getPageOfHouseId(Map<String, Object> params, Integer nPageIdx, Short nPageSize) throws SQLException
/*    */   {
/* 58 */     return getGsonOfParams("selectGoodsOfHouseId", params, nPageIdx, 
/* 59 */       nPageSize, true);
/*    */   }
/*    */ 
/*    */   public int insertInitial(Long hId) throws SQLException {
/* 63 */     Object[] params = { hId, hId };
/* 64 */     return update("insertInitial", params);
/*    */   }
/*    */ 
/*    */   public int insertInStore(Double count, Long id, Long houseId) throws SQLException
/*    */   {
/* 69 */     String[] heads = { "count", "id", "houseId" };
/* 70 */     Object[][] params = { { count, id, houseId } };
/* 71 */     return insertHeadData(heads, params);
/*    */   }
/*    */ 
/*    */   public Long getHouseId(String shopId) throws SQLException {
/* 75 */     Object[] params = { shopId };
/* 76 */     return queryForLong("selectHouseId", params, Long.valueOf(0L));
/*    */   }
/*    */ 
/*    */   public int deleteHouseId(Long storeId) throws SQLException {
/* 80 */     Object[] params = { storeId };
/* 81 */     return update("deleteHouseId", params);
/*    */   }
/*    */ 
/*    */   public boolean getIsHouse(Long storeId) throws SQLException {
/* 85 */     Object[] params = { storeId };
/* 86 */     return queryForBoolean("selectSqlHouseId", params, Boolean.valueOf(false)).booleanValue();
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.store.goodsStock.dao.GoodsStockDao
 * JD-Core Version:    0.5.3
 */